package com.adtech.core.dao.exp;

import org.hibernate.criterion.Criterion;

/**
 * 
 * 
 * @author 李源 
 * @since 2012-7-16 
 * 
 * @Copyright (C) AD Tech Workshop All Right Reserved
 */
public class CriterionExpression implements Expression {

	private static final long serialVersionUID = 3857909889940204332L;
	
	private Criterion criterion;
	
	CriterionExpression(Criterion criterion) {
		this.criterion = criterion;
	}

	public Criterion getCriterion() {
		return criterion;
	}

	public void setCriterion(Criterion criterion) {
		this.criterion = criterion;
	}

	@Override
	public Expression copy() {
		return new CriterionExpression(criterion);
	}
	
}	
